#ifndef _LBSQLIT_H
#define _LBSQLIT_H
#ifdef DLL_EXPORT
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif
#include <iostream>
#include <string>
#include <vector>
#include <windows.h>
#include <stdio.h>
class DLL_API LBsqlite
{
private:
   int rc;
   int _res=0;
   bool last=false;
   char *sqliteError=nullptr;
   std::string msgERR;
   const char *_fileName=nullptr;
   static int _colCount;
   static int _rowCount;
  std::vector <std::string>getFiledValue(const int col); 
public:
     LBsqlite();
    ~LBsqlite();
    LBsqlite(const char *fileName);
    bool open(const char *fileName);
    const char *getLastError();
    bool execSql(const char *sql);
    void showTables();
    int  GetcolCount();
    int  GetrowCount();
    static void  colCount(int col);
    static void  rowCount(int row);
    const char *execValue(const int num);
    const char *execValue(const char *filed);
    // void setValue(const char *tableName,const int indx);
    // void setValue(const char *tableName,const char *filedName);
    bool toNext(); 
    void toFirst();
    void toLast();
    bool toPrev();
  static LBsqlite *DBinit();
  
};

#endif